﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="PcPart.aspx.cs" Inherits="PcPart" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
 <table>
        <tr>
            <td align="left">
                <asp:Label ID="lblError" runat="server"></asp:Label>
                <asp:Label ID="lblText1" runat="server"  Visible="false"></asp:Label>
                <asp:Label ID="lblText2" runat="server"  Visible="false"></asp:Label>
                <asp:Label ID="lblText3" runat="server"  Visible="false"></asp:Label>
                <asp:Label ID="lblText4" runat="server"  Visible="false"></asp:Label>
                <asp:Label ID="lblText5" runat="server"  Visible="false"></asp:Label>
                <asp:Label ID="lblText6" runat="server"  Visible="false"></asp:Label>
                <asp:Label ID="lblText7" runat="server"  Visible="false"></asp:Label>
                <asp:Label ID="lblText8" runat="server"  Visible="false"></asp:Label>
                <asp:Label ID="lblText9" runat="server"  Visible="false"></asp:Label>
                <asp:Label ID="lblText10" runat="server"  Visible="false"></asp:Label>
                <asp:Label ID="lblText11" runat="server"  Visible="false"></asp:Label>
	            <asp:Label ID="lblText12" runat="server"  Visible="false"></asp:Label>
            </td>
        </tr>
        <tr>
            <td align="left">
                <asp:Label ID="lblVazno" runat="server" ></asp:Label>
            </td>
           <td align="right"><asp:TextBox ID="txtSearch" runat="server"></asp:TextBox>
                <asp:Button ID="btnBaraj" runat="server" Text="Барај" 
                    onclick="btnBaraj_Click" /></td>
            <td align="right">
                <asp:Button ID="btnVnesi" runat="server" onclick="btnVnesi_Click" 
                    Text="Внеси нов производ" />
            </td>
        </tr>
        <tr>
            <td colspan="3" align="center" class="style1">
                 &nbsp;<asp:Label 
                     ID="lblText" runat="server"></asp:Label>
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                     CellPadding="4" DataKeyNames="Sifra"  
                     ForeColor="#3F3F3F" GridLines="None" AllowPaging="True" 
                     onrowcancelingedit="GridView1_RowCancelingEdit" 
                     onrowediting="GridView1_RowEditing" onrowupdating="GridView1_RowUpdating" 
                     onselectedindexchanged="GridView1_SelectedIndexChanged" Font-Size="Small" 
                     onpageindexchanging="GridView1_PageIndexChanging" 
                     onrowdeleting="GridView1_RowDeleting">
                     <RowStyle BackColor="#ffffff" />
                     <Columns>
                         <asp:BoundField DataField="Kategorija" HeaderText="Категорија" ItemStyle-Width="50px"
                              SortExpression="Kategorija" ReadOnly="True" >
<ItemStyle Width="150px" HorizontalAlign="Center"></ItemStyle>
                         </asp:BoundField>
                         <asp:BoundField DataField="Sifra" HeaderText="Шифра" ItemStyle-Width="70px"
                             SortExpression="Sifra" ReadOnly="True" >
<ItemStyle Width="40px" HorizontalAlign="Center"></ItemStyle>
                         </asp:BoundField>
                         <asp:BoundField DataField="Proizvod" HeaderText="Производ" ItemStyle-Width="350px"
                             SortExpression="Proizvod" ReadOnly="True" >
<ItemStyle Width="450px" HorizontalAlign="Center"></ItemStyle>
                         </asp:BoundField>
                         <asp:BoundField DataField="Cena" HeaderText="Цена" ItemStyle-Width="100px"
                             SortExpression="Cena" >
<ItemStyle Width="100px" HorizontalAlign="Center"></ItemStyle>
                         </asp:BoundField>
                         <asp:BoundField DataField="ParcinjaVoZaliha" HeaderText="На залиха" ItemStyle-Width="10px"
                             SortExpression="PrcinjaVoZaliha" >
<ItemStyle Width="150px" HorizontalAlign="Center"></ItemStyle>
                         </asp:BoundField>
                         <asp:BoundField DataField="ParcinjaVoNaracka" HeaderText="Нарачани" ItemStyle-Width="10px"
                             SortExpression="ParcinjaVoNaracka" >
<ItemStyle Width="100px" HorizontalAlign="Center"></ItemStyle>
                         </asp:BoundField>
                         <asp:CommandField ButtonType="Button" SelectText="Селектирај" ItemStyle-Width="50px"
                             ShowSelectButton="True" >
<ItemStyle Width="50px"></ItemStyle>
                         </asp:CommandField>
                         <asp:CommandField ButtonType="Button" 
                             ShowEditButton="True"  EditText="Измени" CancelText="Откажи" ItemStyle-Width="50px"
                             UpdateText="Зачувај" >
<ItemStyle Width="50px"></ItemStyle>
                         </asp:CommandField>
                         <asp:CommandField ButtonType="Button" DeleteText="Избриши" 
                             ShowDeleteButton="true" ItemStyle-Width="50px" >
<ItemStyle Width="50px"></ItemStyle>
                         </asp:CommandField>
                     </Columns>
                     <FooterStyle BackColor="#ffffff" Font-Bold="True" ForeColor="White" />
                     <PagerStyle BackColor="#3f3f3f" ForeColor="White" HorizontalAlign="Center" />
                     <SelectedRowStyle BackColor="#99cc33" Font-Bold="True" ForeColor="#ffffff" />
                     <HeaderStyle BackColor="#3f3f3f" Font-Bold="True" ForeColor="White" />
                     <EditRowStyle BackColor="#99cc33" />
                     <AlternatingRowStyle BackColor="White" />
                 </asp:GridView>
                 
                 <br />
                 
                 <asp:Button ID="btnSite" runat="server" onclick="btnSite_Click" 
                     Text="Целосен преглед" />
                 &nbsp;
                 <asp:Button ID="btnNazad" runat="server" onclick="btnNazad_Click" 
                     Text="Преглед по страници" />
                 
            </td>
        </tr>
    </table>
</asp:Content>

